package JAVA;

public class work397 {
    public static void main(String[] args) {
        int x=0;
        for (int i=1;i<=4;i++){
            for (int j=1;j<=4;j++){
                for (int k=1;k<=4;k++){
                    if (i!=k&&i!=j&&j!=k){
                        x++;
                        System.out.println(100*i+10*j+k);
                    }
                }
            }
        }System.out.println("能组成"+x+"个三位数");
    }
}
